home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 40
/
Aminet 40 (2000)(Schatztruhe)[!][Dec 2000].iso
/
Aminet
/
misc
/
emu
/
ATUtilities.lha
/
ATUtilities
/
BASIC
/
VGA.BAS
< prev
next >
Wrap
BASIC Source File
|
2000-09-26
|
865b
|
54 lines
$INCLUDE "REGNAMES.INC"
screen 12
rem buf$=string$(30000,chr$(0))
rem bufseg=STRSEG(buf$)
rem bufofs=STRPTR(buf$)
rem for i=0 to 480 step 20
rem line (0,i)-(640,i+20),rnd*15,bf
rem next
for i=1 to 15
color i : print "VGA - CopyVideoToBuffer() und CopyBufferToVideo() - Test 1234567890 12345678"
next
DEF SEG = &HA000
o1=(32*640)/8
o2=(240*640)/8
rem OUT &H3CE,&H105
rem
rem AUFBAU:
rem -----------------------------
rem Port 3CE:
rem $$ $$
rem Wert Register (1 bis 8)
rem
g=0
for i=0 to (80*640)/8
for j=0 to 1
goto tt
DEF SEG = &HA000
OUT &H3CE,(1*256)+&H04 : rem Plane=j
OUT &H3CE,&H0105 : rem Mode=0 (Read=0)
OUT &H3CE,&HFF08
POKE o1+i,&HFF
tt:
def seg = &Ha000
out &H3CE,&H0205
out &H3CE,&H0003
out &H3CE,&HFF08
poke o1+i,1+2+3+4
next
next
end